package com.lagou.service.impl;

import com.lagou.service.TestService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

/**
 * @author bobcheng
 * @date 2020/6/15
 */
@Service
public class TestServiceBImpl implements TestService {

    public void test() {
        String ip = RpcContext.getContext().getAttachment("ip");
        System.out.println("service b process, transport ip: " + ip);
    }
}
